package priv.yiyuan.example.filestorage;

import org.springframework.boot.CommandLineRunner;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class FileStorageConfig {

    @Bean
    CommandLineRunner init() {
        FileStorageService storageService = new FileStorageServiceImpl();
        return args -> {
            storageService.init();
        };
    }
}